package com.codeyang.service;

import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
import com.codeyang.domain.SmsLog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codeyang.model.AliSmsModel;
import com.codeyang.model.WxMsgModel;
import org.springframework.http.ResponseEntity;

/**
 * 描述: TO-删除标志-DO
 *
 * @author CodeYang_Site
 * @version 2021/5/30 10:07
 */
public interface SmsLogService extends IService<SmsLog> {

    /**
     * 记录 阿里短信发送记录
     *
     * @param userId
     * @param aliSmsModel
     * @param sendSmsResponse
     */
    void saveAliSms(String userId, AliSmsModel aliSmsModel, SendSmsResponse sendSmsResponse);

    /**
     * 记录微信发送消息
     *
     * @param wxMsgModel
     * @param result
     */
    void saveWxMsg(WxMsgModel wxMsgModel, ResponseEntity<String> result);

}
